<?php

return [
    /*
    | -------------------------------------------------------------------------------
    | redis 连接配置
    | -------------------------------------------------------------------------------
    | key   链接配置名称，用于标记链接
    | value  数组形式，数组每一项内容相似，用于将一组redis的主从放在一起，无需标记主从，应用会自动探测，但为了性能，建议将主机放在第一个
    |     每一项配置     host 主机地址  port 主机端口  password 安全密码  database 数据库id
    |      persistent 是否使用长连接  如不需要，不添加这一项即可   timeout 链接超时，默认2s
    |      persistent_id 开启长连接时使用的链接标识，便于复用
    */
    'default' => 'login_session',
    'connections' => [
        'login_session' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'login_session',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'login_session',
            ],
        ],
        //职位流程标签报表数据
        'caseflowcount' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 7,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'caseflowcount',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 7,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'caseflowcount',
            ],
        ],
        //流程标签报表数据
        'reportdata' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 2,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'reportdata',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 2,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'reportdata',
            ],
        ],
        //最近使用职位
        'recentcase' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 3,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'recentcase',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 3,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'recentcase',
            ],
        ],
        //简历已读数据
        'readresume' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 4,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'readresume',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 4,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'readresume',
            ],
        ],
        //找回密码邮件，存放身份验证编码
        'forgetpasswd_md5' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'forgetpasswd_md5',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'forgetpasswd_md5',
            ],
        ],
        //搜索器
        'mysearch' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'mysearch',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'mysearch',
            ],
        ],
        //用户信息
        'userinfo' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'userinfo',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'userinfo',
            ],
        ],
        //简历加入到职位信息
        'resumeincase' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 5,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'resumeincase',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 5,
                'persistent' => true,
                'timeout' => 10,
                'persistent_id' => 'resumeincase',
            ],
        ],
        //项目流程
        'projectflow' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 3,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'projectflow',
            ],
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 3,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'projectflow',
            ],
        ],
        //置顶公司信息
        'topsubids' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 8,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'topsubids',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 8,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'topsubids',
            ],
        ],
        //未读消息总数
        'noticecount' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'noticecount',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'noticecount',
            ],
        ],
        //视频面试客户端
        'videointerview' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'topsubids',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 0,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'topsubids',
            ],
        ],
        //b端
        'customers' => [
            [
                'host' => '192.168.71.57',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 6,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'customers',
            ],
            [
                'host' => '192.168.71.58',
                'port' => '6381',
                'password' => decrypt(env('REDIS_PASSWORD_6381', 'foobared')),
                'database' => 6,
                'persistent' => true,
                'timeout' => 2,
                'persistent_id' => 'customers',
            ],
        ]
    ]
];